/*
 * Copyright：fxsen <br/>
 * Date: 2022/1/20 10:39 <br/>
 * Email:fxsen@foxmail.com
 * Author: fxsen
 */
package com.fxsen.commons.sysmanager.core.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fxsen.commons.core.base.common.entity.BaseEntity;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @describe: 角色权限
 * @date: 2022/1/20 10:39
 * @author: fxsen
 */
@ApiModel("角色权限")
@TableName("sys_role_permission")
@TableComment(value = "角色与权限关联表")
public class RolePermission extends BaseEntity {
    /**
     * 角色id
     */
    @ApiModelProperty("角色id")
    @TableField(value = "role_id")
    @Column(name = "role_id", type = MySqlTypeConstant.VARCHAR, comment = "角色id",length = 32)
    private String roleId;
    /**
     * 权限id
     */
    @ApiModelProperty("权限id")
    @TableField(value = "permission_id")
    @Column(name = "permission_id", type = MySqlTypeConstant.VARCHAR, comment = "权限id",length = 32)
    private String permissionId;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(String permissionId) {
        this.permissionId = permissionId;
    }
}
